package com.abtu.sms.teacher.service.impl;

import com.abtu.sms.pojo.Course;
import com.abtu.sms.pojo.Teacher;
import com.abtu.sms.teacher.mapper.TeacherMapper;
import com.abtu.sms.teacher.service.TeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
    public class TeacherServiceImpl implements TeacherService {
        @Resource
        private TeacherMapper teacherMapper;
        @Override
        public Teacher login(String id, String password) throws Exception {
            return teacherMapper.login(id, password);
        }

    @Override
    public Teacher logout(String id) throws Exception {
        return teacherMapper.logout(id);
    }


}
